home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group99a.txt
/
000068_icon-group-sender _Tue Mar 30 15:30:02 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id PAA13864
for icon-group-addresses; Tue, 30 Mar 1999 15:25:42 -0700 (MST)
Message-Id: <199903302225.PAA13864@baskerville.CS.Arizona.EDU>
Date: Tue, 30 Mar 1999 11:02:54 -0600
From: Steve Graham <graham@cowboy.biomed.com>
X-Accept-Language: en
To: icon-group@optima.CS.Arizona.EDU
Subject: Problem reading binary file
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Hello.
I am using MS-DOS Icon 9.1 to read a binary file. After reading 6
characters, the program apparently quits reading. I have attached the
relevant portion of the code:
-------------------------- Code ------------------------------
procedure main(args)
#
cnt := 0
in := open(args[1],"r") | stop("Unable to open ",args[1])
out := open(args[2],"w") | stop("Unable to open ",args[2])
while character := reads(in,1) do {
write(character," -->", ord(character))
cnt := cnt+1
}
close(in,out)
write(cnt," characters transferred")
end
-----------------------End of Code-------------------------
I invoke the program with:
word r99-0059.doc r99-0059.txt
I get output of (some unprintable characters are represent by _):
- -->208
- -->207
-->17
_ -->224
� -->161
_ -->177
6 characters transferred
Any ideas?
Thanks in advance.
-- Steve
______________________________________________________
Steve Graham
Laboratory Corporation of America (LabCorp)
12160 Abrams Road, Suite 601
Dallas, Texas 75243
E-mail: graham@cowboy.biomed.com
Phone: 972.643.6124 (direct to desk)
972.437.5255 ext 5224
FAX: 972.454.1040
_______________________________________________________